<template>
    <view>
        <nut-cascader
        class="addressChoose2"
        valueKey="name"
        textKey="name"
        :title="title"
        v-model:visible="props.addressShow"
        v-model="formState.sendAddress"
        @change="events.change"
        :options="addressList"
        :closeable="true"
      ></nut-cascader>
    </view>
</template>
<script lang="ts" setup>
import { onMounted, ref, reactive, watch } from "vue";

const props = defineProps<{
  title:string,
  addressShow:boolean,
  addressList:any,
  formState:object,
}>();

console.log(props.addressShow,'props.addressShow');

const events = {
  change(val: string[]) {
    // console.log(val);
  },
};
</script>
